package com.ruoyi.project.system.domain;

import lombok.Data;

import java.math.BigDecimal;

@Data
public class Promotion {

    private Integer id;

    private String name;

    private String code;

    private String introduce;

    // 成本价格
    private BigDecimal basePricing;

    // 推广收益
    private BigDecimal promotionAdd;

    public Promotion() {
    }

    public Promotion(SmProduct smProduct, BigDecimal basePricing, BigDecimal promotionAdd) {
        this.id = smProduct.getId();
        this.code = smProduct.getCode();
        this.name = smProduct.getName();
        this.introduce = smProduct.getIntroduce();

        this.basePricing = basePricing;
        this.promotionAdd = promotionAdd;
    }
}
